package com.gxa.learning.core.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;

/**
 * 学员考试填写答案表
 *
 * @author chenj
 * @date 2021/12/3 18:01
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Table(name = "tb_answer")
public class Answer {
    /**
     * 填写答案编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "answer_id")
    private Long id;

    /**
     * 学员编号
     */
    @Column(name = "user_id")
    private Long uId;

    /**
     * 题目编号
     */
    @Column(name = "question_id")
    private Long qId;

    /**
     * 学员填写的答案
     */
    @Column(name = "answer_fill")
    private String answerFill;

    /**
     * 用uuid生成的考试编号
     */
    @Column(name = "answer_score_key")
    private String scoreKey;
}
